package chat.aylan.top.commons;
/**
 * 用户实体
 */

import chat.aylan.top.database.entity.UserEntity;
import chat.aylan.top.wind.ChatWind;
import chat.aylan.top.wind.ManagerWind;

public class User extends UserEntity {

    private String state;
    private ChatWind wind;

    private int msg;

    public ChatWind getWind() {
        return wind;
    }

    public void setWind(ChatWind wind) {
        this.wind = wind;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setStatus(short status) {
        this.status = status;
        if(status == 1){
            this.state = "在线";
            ManagerWind.onlines++;
        }else{
            this.state = "下线";
        }
    }

    public int getMsg() {
        return msg;
    }

    public void setMsg(int msg) {
        this.msg = msg;
    }
}
